// @ts-ignore
import api from "@/api/http";
import { ApiResponse } from "@/api/types/ApiResponse";


export interface SysAppResponse {
  id?: string | number;
  appName: string;
  appCode: string;
  appWebUrl: string;
  appApiUrl: string;
  disabled: string;
  deleted?: string | number;
}

export const doResolvingSwaggerData = async (fileList: File[], url: string, text: string): Promise<ApiResponse<boolean>> => {
  const formData = new FormData();
  formData.append("file", fileList[0]);
  formData.append("url", url);
  formData.append("text", text);
  return api.doUpload("/SysApp/swagger/resolving", formData);
};


export default {
  doResolvingSwaggerData
};
